package com.itheima.chapter09.io.bytestream;

import java.io.*;

public class BufferOIDemo2 {
    public static void main(String[] args) throws IOException {
        BufferedInputStream bis =new BufferedInputStream(new FileInputStream("D:\\my_project\\a.txt"));
        BufferedOutputStream bos =new BufferedOutputStream(new FileOutputStream("MyIdeaTest\\aaa\\buffshuzucopy.txt"));
        byte[] bys =new byte[1024];
        int len;
        while((len= bis.read())!=-1){
            bos.write(bys,0,len);
        }
        bis.close();
        bos.close();
    }
}
